﻿/*
 *Copyright(C) 2020 by  GYYX All rights reserved.
 *Unity版本：2018.4.23f1 
 *作者:程一峰  
 *创建日期: 2021-04-08 
 *模块说明：
 *版本: 1.2
*/

using UnityEngine;

namespace WarfareEditor.FSM
{
    /// <summary>
    /// 左侧的信息页面；
    /// </summary>
    public class FSMZoom_Info : FSMZoom
    {
        private FSMZoom_FileHandle FileHandle;
        private FSMZoom_NodeEdit EditHandle;

        protected internal override void Init(FSMEditorWindow aWindow)
        {
            base.Init(aWindow);

            FileHandle = new FSMZoom_FileHandle();
            FileHandle.Init(aWindow);

            EditHandle = new FSMZoom_NodeEdit();
            EditHandle.Init(aWindow);
        }

        protected internal override void OnDestroy()
        {
            FileHandle.OnDestroy();
            EditHandle.OnDestroy();
        }

        protected internal override void OnGUI()
        {
            FileHandle.OnGUI();
            GUILayout.Space(12);
            EditHandle.OnGUI();
        }

    }
}